<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .box {
            width: 200px;
            height: 200px;
            padding: 5px;
            position: relative;
        }

        .one,
        .two,
        .three,
        .four {
            position: absolute;
            width: 50px;
            height: 50px;
        }

        .one {
            top: 0;
            left: 0;
            border-top: 1px solid #ff3040;
            border-left: 1px solid #ff3040;
        }

        .two {
            top: 0;
            right: 0;
            border-top: 1px solid #ff3040;
            border-right: 1px solid #ff3040;
        }

        .three {
            bottom: 0;
            left: 0;
            border-bottom: 1px solid #ff3040;
            border-left: 1px solid #ff3040;
        }

        .four {
            bottom: 0;
            right: 0;
            border-bottom: 1px solid #ff3040;
            border-right: 1px solid #ff3040;
        }
    </style>
</head>

<body>
    <div class="box">
        <img src="codeBorder.png" alt="" style="width:100%;height:100%;">
        <div class="one"></div>
        <div class="two"></div>
        <div class="three"></div>
        <div class="four"></div>
    </div>
</body>

</html>